<%
    String namaUser = null;

    Cookie[] cookies = request.getCookies();
    if (cookies != null) {
        for (Cookie cookie : cookies) {
            if (cookie.getName().equals("nama")) {
                namaUser = cookie.getValue();
            }

        }
    }
    if (namaUser == null) {
        response.sendRedirect("login.jsp");
    }
%>	
<nav class="navbar navbar-default" role="navigation">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button> <a class="navbar-brand" href="http://localhost:8080/museumfp/panelsuperadmin">Home</a>
    </div>

    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav">



        </ul>

        <ul class="nav navbar-nav navbar-right">
            <li>
                <a href="http://localhost:8080/museumfp/logout">Logout</a>
            </li>

        </ul>
    </div>

</nav>

<div class="row clearfix">
    <div class="col-md-6 column">
        <div class="container">
            <div class="row">
                <div class="col-md-6">
                    <div class="panel panel-primary">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                <span class="glyphicon glyphicon-bookmark"></span> Panel Super Admin</h3>
                        </div>
                        <div class="panel-body">


                            <a href="http://localhost:8080/museumfp/register" class="btn btn-info btn-lg btn-block" role="button"><span class="glyphicon glyphicon-user"></span> Tambah User</a>
                            <a href="http://localhost:8080/museumfp/listuser" class="btn btn-danger btn-lg btn-block" role="button"><span class="glyphicon glyphicon-file"></span> List</a>
                            <a href="http://localhost:8080/museumfp/front" class="btn btn-success btn-lg btn-block" role="button"><span class="glyphicon glyphicon-globe"></span> Website</a>


                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-6 column">
        <h2>
            Selamat Datang <%=namaUser%>
        </h2>
        <p>
            Super Admin berfungsi untuk memanajemen admin web catalog museum.Untuk menambah user klik menu Tambah User, untuk melihat daftar user klik menu List User, untuk mengedit dan menghapus user, klik List User.
        </p>

    </div>
</div>

</body>
</html>
